<extend name="Public/main" />
<block name="body">
	<div class="wrap J_check_wrap">
		<div class="nav">
			<ul class="cc">
				<li class="current"><a href="javascript:;">爱心人士列表</a></li>
			<!-- 	<li><a target="_self" href="{:U('Sponser/add')}">添加爱心人士</a></li>
				<li><a target="_self" href="{:U('Sponser/pushbyexcel',array('term'=>$term['term_id']))}">Excel导入</a></li> -->
			</ul>
		</div>
		<!-- <div class="h_a">搜索</div> -->
		<!-- <form  method="post">
			<div class="search_type cc mb10">
				<div class="mb10"> 
					<span class="mr20">分类：
						<select class="select_2" name="term">
							<option value='0' >全部</option>
							{$taxonomys}
						</select>
						&nbsp;&nbsp;时间：
						<input type="text" name="start_time" class="input length_2 J_date" value="{$formget.start_time}" style="width:80px;" autocomplete="off">-<input type="text" class="input length_2 J_date" name="end_time" value="{$formget.end_time}" style="width:80px;" autocomplete="off">

						 
						<select class="select_2" name="searchtype" style="width:70px;">
						  <option value='0' >标题</option>
						</select>
						
						&nbsp; &nbsp;关键字：
						<input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$formget.keyword}" placeholder="请输入关键字...">
						<input type="submit" class="btn" value="搜索"/>
					</span>
				</div>
			</div>
		</form> -->
		<div class="single-style"></div>
		<style type="text/css">
			.single-style{border:1px dotted #000;padding:10px;}
			.table-heaer{overflow: hidden;border: 1px dotted #000;}
			.table-heaer p{width: 120px;float: left;font-size: 14px;font-weight: 700;}
			.recipients-info{overflow: hidden;margin-top: 10px;margin-bottom: 10px;}
			.recipients-info p{}
			.list-recipients{overflow: hidden;}
			.list-recipients p{width: 120px;float: left;overflow: hidden;}
		</style>
		<div class="table-heaer">
				<p width="">ID</p>
				<p width="">用户名</p>
				<p width="">家长姓名</p>
				<p width="">家长电话</p>
				<p width="">申请人姓名</p>
				<p>申请人电话</p>
				<p width="">申请人邮箱</p>
				<p width="">过期时间</p>
				<p>是否支付？</p>
				<p width="">支付方式</p>
				<p width="">操作</p>
		</div>
			<foreach name="ReInfo" item="vo">
				<div class ="single-style">
					
					<div style="width:100%" class="recipients-info">
						<p style="float:left">资助人姓名: <a href="javascript:;">{$vo.userinfo.loginName}</a> </p>
						<p style="float:left">资助人数：{$vo.count.}</p>
					</div>
					
					
					<table width="100%" class="table">
				
				<?php foreach ($vo['recipients'] as $kr => $vr): ?>
					
				<div class="list-recipients">
					<p >{$vr.id}</p>
					<p >{$vr.apply_name}</p>
					<p >{$vr.patriarch_name}</p>
					<p >{$vr.patriarch_phone}</p>
					<p >{$vr.apply_name}</p>
					<p ><?php $vr['apply_phone'] = empty($vr['apply_phone'])?"<span style='padding-left:10px;'><i class='fa fa-minus-circle'></i></span>":$vr['apply_phone']; ?>{$vr.apply_phone}</p>
					<p ><?php $vr['apply_email'] = empty($vr['apply_email'])?"<span style='padding-left:10px;'><i class='fa fa-minus-circle'></i></span>":$vr['apply_email']; ?>{$vr.apply_email}</p>
					<p ><?php $vr['expiration_time'] = empty($vr['expiration_time'])?"<span style='padding-left:10px;'><i class='fa fa-minus-circle'></i></span>":$vr['expiration_time']; ?>{$vr.expiration_time}</p>
					<p ><?php if($vr['is_pay']>0){ echo "<span style='padding-left:10px;'><i class='fa fa-check-square'></i></span>";}else{echo "<span style='padding-left:10px;'><i class='fa fa-minus-square'></i></span>";} ?></p>
					<p>
					<!-- 	<a href="" class="btn">设置时间</a>
						<a href="" class="btn">支付状态</a> -->
					</p>
				</div>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						
						<td></td>
					
						<td></td>
						<td>
						
						</td>
					</tr>


				<?php endforeach ?>
					</table>
				</div>
			</foreach>

			</div>
			<!-- <div>
				<div class="btn_wrap_pd">
					<label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>                
					<button class="btn J_ajax_submit_btn" type="submit" data-action="{:u('post/listorders')}">排序</button>
					<button class="btn J_ajax_submit_btn" type="submit" data-action="{:u('post/check',array('check'=>1))}" data-subcheck="true" >审核</button>
					<button class="btn J_ajax_submit_btn" type="submit" data-action="{:u('post/check',array('uncheck'=>1))}" data-subcheck="true" >取消审核</button>
					<button class="btn J_ajax_submit_btn" type="submit" data-action="{:u('post/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
					<button class="btn" type="button" id="J_Content_remove">批量移动</button>
				</div>
			</div> -->

	</div>
</block>
<block name="script">
	<script>

		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location.reload();
			}
		}
		setInterval(function() {
			refersh_window();
		}, 2000);
		$(function() {
			setCookie("refersh_time", 0);
			Wind.use('ajaxForm', 'artDialog', 'iframeTools', function() {
				//批量移动
				$('#J_Content_remove').click(function(e) {
					var str = 0;
					var id = tag = '';
					$("input[name='ids[]']").each(function() {
						if ($(this).attr('checked')) {
							str = 1;
							id += tag + $(this).val();
							tag = ',';
						}
					});
					if (str == 0) {
						art.dialog.through({
							id: 'error',
							icon: 'error',
							content: '您没有勾选信息，无法进行操作！',
							cancelVal: '关闭',
							cancel: true
						});
						return false;
					}
					var $this = $(this);
					art.dialog.open("__ROOT__/index.php?g=admin&m=post&a=move&ids=" + id, {
						title: "批量移动"
					});
				});
			});
		});


	</script>
</block>